'use strict';

const titbit = require('titbit')

const app = new titbit({
    debug:true,
    https:true,
    key:'/usr/local/cert/www.responsibility.pro.key',
    cert:'/usr/local/cert/www.responsibility.pro.crt'
})

app.get('/',async c=>{
    c.res.body = '尚格格 success'
})
app.get('/info',async c=>{
    let info = {
        name:'尚格格',
        sno:'2018011963'
    }
    c.res.body = JSON.stringify(info);
})

app.run(7090)